#include "QyToolRender.h"


void QyToolRender::paint( QyGL::ViewWidget * viewWidget ) {

    foreach ( QyAbstractToolRenderItem * item, renderItems ) {

        if ( item->isVisible() )
            item->paint();

    }

}

void QyToolRender::addItem( QyAbstractToolRenderItem * item ) {

    renderItems.append(item);

}

void QyToolRender::removeItem( QyAbstractToolRenderItem * item ) {

    renderItems.removeAll(item);

}
